import axios from "@/assets/request/request";
import request from "@/assets/request";
import { Tag } from "@/types/tag";

export default {
  getByVideoId: (id: string) => {
    return request.get<Tag[]>(`/tag/getByVideoId/${id}`);
  },
  getByChannel: (channelId: number) => {
    return axios({
      url: `/tag/getByChannel/${channelId}`,
      method: "get",
    });
  },
};
